//!h
//!author Maciej Piotrowski=macciej
//!date 2010-08-07

#include <iostream>
#include <string>
#include <boost\regex.hpp>
#include "filelist.h"

using namespace std;

std::string classname(File& f)
{
	boost::regex reg("(class){1}\\s+\\w+");
	boost::smatch m;
	for(unsigned i = 0; i < f.GetLinesCount(); i++)
	{
		if(regex_search(f.GetLine(i), m, reg))
			cout << m[0];
	}

	return "mamamamaciek";
}

int main()
{	
	FileList fl("C:\\Users\\Maciek\\Documents\\Visual Studio 2008\\Projects\\docgen");
	fl.NextFile();
	File f = fl.NextFile();
	classname(f);

	system("PAUSE");
	return 0;
}